Test Failed
Push — master ( db6889...9321a0 )
by Dmytro
01:41
created

CottusFormatError   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 8
dl 0
loc 14
c 0
b 0
f 0
rs 10

2 Functions

Rating   Name   Duplication   Size   Complexity  
A hash 0 8 1
A setContext 0 3 1
1
export default class CottusFormatError extends Error {
2
    get hash() {
3
        return {
4
            value   : this.value,
5
            // path    : 'user.name',
6
            code    : this.code,
7
            message : this.message
8
        };
9
    }
10
11
    setContext(value) {
12
        this.value = value;
13
    }
14
}
15